package com.jz.enu;

public enum StatusEnum {

    QIYONG(1,"启用"),JINYONG(0,"禁用");

    private Integer status;
    private String statusName;

    StatusEnum(Integer status, String statusName){
        this.statusName = statusName;
        this.status = status;
    }

    public static String getName(Integer state){
        for (StatusEnum per: StatusEnum.values()) {
            if(per.status ==state){
                return per.statusName;
            }
        }
        return null;
    }
    public Integer getStatus(){
        return status;
    }
    public String getStatusName(){
        return statusName;
    }

}
